$(function(){
	var show = 0;
	$("*").click(function() {
		setTimeout(function () {
			switch (show) {
				case 1:
					$("#learn-choose").css("display", "none");
					show = 0;
					break;
				case 2:
					$("#review-choose").css("display", "none");
					show = 0;
			}
		},20);
	});
	$("#learn-button").click(function() {
		if (show == 1) {
			$("#learn-choose").css("display", "none");
			show = 0;
		} else {
			setTimeout(function () {
				$("#learn-choose").css("display", "block");
				show = 1;
			}, 40);
		}
	});
	$("#review-button").click(function() {
		if (show == 2) {
			$("#review-choose").css("display", "none");
			show = 0;
		} else {
			setTimeout(function () {
				$("#review-choose").css("display", "block");
				show = 2;
			}, 40);
		}
	});
	$("#manage-button").click(function() {
		location.href = ("module/user/ManageWordLib.html");
	});
	$("#learn-choose").children().eq(0).click(function(){
		location.href = ("module/learn/CreatePrivateList.html");
	});
	$("#learn-choose").children().eq(2).click(function(){
		location.href = ("module/learn/ChoosePublicList.html");
	});
	$("#review-choose").children().eq(0).click(function(){
		location.href = ("exam.html");
	});
	$("#review-choose").children().eq(2).click(function(){
		location.href = ("module/review/ListReview.html");
	});

});
